@extends('layouts.app')
@include('system.sidebar')
@section('content')
    <div class="content">
        <div class="row custom-invoice">
            <?php
                $default = "";
                $url1 = is_null($tmp = $data->pop())? $default : \App\Library\OSS::instance()->getUrl($tmp->image);
            ?>
            <div class="col-md-5 col-sm-9 col-xs-12">
                @if($url1 == "")
                    <a class="btn btn-info btn-sm" href="{{ route('admin.system.recommend.edit', ['id' => 1]) }}">添加推荐</a>
                @else
                    <a href="{{ route('admin.system.recommend.edit', ['id' => 1]) }}"><img src="{{ $url1 }}" width="300"></a>
                @endif
            </div>
        </div>
    </div>
@endsection
